let bottomRight = document.querySelector('.bottom-right')
let bot = echarts.init(bottomRight)
let opt = {
    // title: {
    //   text: 'Referer of a Website',
    //   subtext: 'Fake Data',
    //   left: 'center'
    // },
    tooltip: {
      trigger: 'item'
    },
    legend: {
      top: '5%',
      center: 'center'
    },
    series: [
      {
        name: 'Access From',
        type: 'pie',
        radius: '55%',
        data: [
          { value: 1048, name: '境外' },
          { value: 900, name: '境内' },
          // { value: 580, name: 'Email' },
          // { value: 484, name: 'Union Ads' },
          // { value: 300, name: 'Video Ads' }
        ],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        }
      }
    ]
  };

  bot.setOption(opt)